package com.twu;

public class ChicagoPizzaFactory extends PizzaFactory {

    @Override
    public Pizza createPizza(String typeOfPizza) {

        if (typeOfPizza.equals("Cheese")) {
            return new ChicagoCheesePizza();
        } else if (typeOfPizza.equals("Garlic")) {
            return new ChicagoGarlicPizza();
        }
        return null;
    }

}

